package com.dgut.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloController {

    @RequestMapping("/hello")
    public String hello(){
        System.out.println("hello spring mvc");
        return "helloWorld.jsp";
    }

    @RequestMapping("/hi")
    public String sayHi(){
        System.out.println("hi spring mvc");
        return "/WEB-INF/pages/hi.jsp";
    }
}
